package thisdemo;

public class text {
    public static void main(String[] args) {
        //目标：认识this;掌握应用场景
        //this就是一个变量，可以用在方法中，来拿到当前对象。`
        Student s1 = new Student();
        System.out.println(s1);
        s1.printThis();
        System.out.println("---------------------------------------------");

        Student s2 = new Student();
        System.out.println(s2);
        s2.printThis();

        Student s3 = new Student();
        s3.score = 365;
        s3.printPass(259);//需要得到的目标分数

    }
}
